import amaret.targets.avr.GCMega168;

metaonly module BuildC inherits amaret.freestyle.core.distro.IBaseC {

    readonly config gnu.targets.ITarget.Module GNU_Target;
}

implementation {

    TOOLSDIR := "c:/WinAvr-20071221";
    
    final Target := GCMega168;
    
    Target.platform := 'amaret.platforms.arduino';
    Target.rootDir := TOOLSDIR;
    
    Target.profiles['whole_program'] := {};
    Target.profiles['whole_program_debug'] := {};
    
    Target.profiles['whole_program'].filters := [{moduleName: 'biosbob.filters.blas.FilterGCC'}];
    Target.profiles['whole_program_debug'].filters := [{moduleName: 'biosbob.filters.blas.FilterGCC'}];
    
    final GNU_Target := GCMega168;
    
    GNU_Target.LONGNAME := "bin/avr-gcc";

    Build.platformTable[Target.platform] := { toolsDir: TOOLSDIR };
}
